<?php
namespace app\admin\model;

use pidan\Model;

class Admin extends Model
{
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';

    public function getLogintimeAttr($value)
    {
        return $value ? date('Y-m-d H:i',$value) : '';
    }

}